package com.lagou.edu.pojo;


import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 保存访问次数
 * @Author 梅松
 * @Date 2021/10/24 16:32
 */
public class LimitTimes {

    private Date beginTime;
     public  int times;

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    @Override
    public String toString() {
        return "LimitTimes{" +
                "beginTime=" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(beginTime) +
                ", times=" + times +
                '}';
    }
}
